package com.peixian.enums;

public enum BaseResultEnums {
    SUCCESS(200, "请求成功"),
    NO_LOGIN(201, "未登录"),
    LOGIN_REPLACED(202, "您的账号在别处登录！"),
    RSA_ERROR(250, "加密错误"),
    BUSY(300, "服务器繁忙"),
    DEFAULT(500, "系统繁忙，请稍后重试！"),
    PASSWORD_ERROR(300, "密码错误"),
    PARAMS_ERROR(601, "参数异常"),
    SMS_ERROR(602, "验证码不对"),
    BALANCE_ERROR(604, "验证码不对"),
    ACCESS_DENIED(403,"你没有相应的权限");

    private int code;
    private String cnmsg;

    BaseResultEnums(int code, String cnmsg) {
        this.code = code;
        this.cnmsg = cnmsg;

    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }


    public String getCnmsg() {
        return cnmsg;
    }

    public void setCnmsg(String cnmsg) {
        this.cnmsg = cnmsg;
    }
}
